home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
kbdhandl.zip
/
KEYTEST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-02
|
593b
|
26 lines
#include <stdio.h>
#include "key.h"
main()
{
printf("Multiple key test program by Patch\n");
printf("──────────────────────────────────\n");
printf("Read KEY.DOC for more info.\n");
printf("The magic key is LEFTSHIFT and KEYPAD8.\n\n");
printf("Hit any key to start the test (ESC quits) ...\n");
getch();
Set_New_Int9();
while (1)
{
if (keys[kESC] == 1)
break;
if (keys[kLEFTSHIFT] == 1 && keys[kKEYPAD8] == 1)
printf("You pressed LEFTSHIFT and KEYPAD8!\n");
}
Set_Old_Int9();
}